package org.example.shop_db.service.Impl;

import org.example.shop_db.mapper.UserMapper;
import org.example.shop_db.pojo.User;
import org.example.shop_db.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByName(String username) {
        User u = userMapper.findByName(username);
        return u;
    }
}
